package com.lyf.scm.plan.insfrastructure.db.dataobject.bigdata;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * description
 *
 * @author wangchlei
 * @date 2020/10/20
 */
@Data
public class BaseEntity {
    @Id
    private String id;

    @Field(type = FieldType.Keyword)
    private String channelCode;

    @Field(type = FieldType.Keyword)
    private String channelName;

    @Field(type = FieldType.Keyword)
    private String priCategoryCode;

    @Field(type = FieldType.Keyword)
    private String secCategoryCode;

    @Field(type = FieldType.Keyword)
    private String terCategoryCode;

    @Field(type = FieldType.Keyword)
    private String skuCode;

    @Field(type = FieldType.Keyword)
    private String provinceCode;

    @Field(type = FieldType.Keyword)
    private String cityCode;

    @Field(type = FieldType.Keyword)
    private String countyCode;

    @Field(type = FieldType.Keyword)
    private String storeCode;

    @Field(type = FieldType.Keyword)
    private String opSign;

    @Field(type = FieldType.Keyword)
    private String createTime;

    @Field(type = FieldType.Keyword)
    private String updateTime;

    @Field(type = FieldType.Integer)
    private Integer isAvailable;

    @Field(type = FieldType.Integer)
    private Integer isDeleted;

    @Field(type = FieldType.Integer)
    private Integer versionNo;

    @Field(type = FieldType.Double)
    private Long creator;

    @Field(type = FieldType.Keyword)
    private String creatorName;

    @Field(type = FieldType.Double)
    private Long modifier;

    @Field(type = FieldType.Keyword)
    private String modifierName;

    @Field(type = FieldType.Double)
    private Long merchantId;

    @Field(type = FieldType.Double)
    private Long appId;

    @Field(type = FieldType.Keyword)
    private String userDef1;

    @Field(type = FieldType.Keyword)
    private String userDef2;

    @Field(type = FieldType.Keyword)
    private String userDef3;

    @Field(type = FieldType.Keyword)
    private String userDef4;

    @Field(type = FieldType.Keyword)
    private String userDef5;

    @Field(type = FieldType.Keyword)
    private String userDef6;

    @Field(type = FieldType.Keyword)
    private String userDef7;

    @Field(type = FieldType.Keyword)
    private String userDef8;
}
